import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
	  user:null,
	  token:null
  },
  mutations: {
	  updateUserinfo(state,obj) {
		  state.user = obj.user
		  state.token = obj.token
	  }
  },
  actions: {
  },
  modules: {
  }
})
